#include "DeviceLogin.h"
#include "ui_DeviceLogin.h"

DeviceLogin::DeviceLogin(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::DeviceLogin)
{
    ui->setupUi(this);
}

DeviceLogin::~DeviceLogin()
{
    delete ui;
}

void DeviceLogin::on_pb_ConPLC_clicked()
{
    PLCHelper::GetInstance()->Connect();
}

void DeviceLogin::on_pb_ConCam_clicked()
{
    CameraHelper::GetInstance()->Connect();
}

void DeviceLogin::on_pb_ConLaser_clicked()
{
    LaserHelper::GetInstance()->Connect();
}

void DeviceLogin::on_pb_ConMachine_clicked()
{
    MachineHelper::GetInstance()->Connect();
}

void DeviceLogin::on_pb_ConRobot_clicked()
{
    RobotHelper::GetInstance()->ConnectToRobot();
}

void DeviceLogin::on_pb_ConWeld_clicked()
{
    // CameraHelper::GetInstance()->Connect();
}

void DeviceLogin::on_pb_ConSQL_clicked()
{
    SQLHelper::GetBlade()->_p_tr->ConnectToDB();
}
